package ro.prjmanager.core.service;



import java.util.List;

public interface Service<M,ID> {
    public void create(M entity);

    public void delete(ID id);

    public M load(ID id);

    public List<M> listPag(int startPage,int resPerPage);
    public List<M> listPag(int startPage,int resPerPage,String orderCol,boolean asc,
                           Object... otherItems);

    public List<M> list();

    public List<M> listPagFilter(int startPage,int resPerPage,String filter);

    public List<M> listPag(SQLQuery sqlQuery);

    public int no(String filter);
    public int no(SQLQuery sqlQuery);


    public void update(M entity);



}